* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
header {
  width: 100%;
  height: 70px;
  display: grid;
  padding: 0 40px;
  background-color: #fff;
  box-shadow: 0px 12px 40px 0px rgba(65, 77, 128, 0.22);

  grid-template-columns: 1fr 2fr;
  align-items: center;
  position: relative;
  z-index: 999;
}
.logo {
  font-size: 20px;
  font-weight: 600;
  margin-top: -5px;
  color: #000;
}
.logo img {
  width: 30px;
  margin-top: -10px;
  margin-right: 10px;
}
header nav {
  justify-self: end;
  font-size: 17px;
}
header nav i {
  color: #000;
}
header ul {
  list-style: none;
  background-color: #fff;
  max-height: 400px;
  overflow: scroll;
}
::-webkit-scrollbar {
  display: none;
}
header nav ul .uili {
  float: left;
}
header nav ul .uili a {
  color: #000;
  text-decoration: none;
  line-height: 69px;
  text-transform: uppercase;
  /* margin: 0 20px; */
}
header nav ul .uili .aOne {
  margin: 0 20px;
}
header nav ul .uili a:hover {
  text-decoration: none;
  color: #000;
  /* border-bottom: 1px solid blue; */
  /* border-top: 1px solid blue; */
}
header nav ul li:hover {
  border-top: 1px solid #3273ff;
  background-color: #ddd;
  /* border-top: 1px solid blue; */
}
.xuan {
  border-top: 1px solid #3273ff;
  background-color: #ddd;
}
.xuan .uili {
  color: #3273ff;
}
.xuan .uili:hover {
  color: #3273ff;
  background-color: #ddd;
}
header nav ul .uili:hover {
  color: #000;
  background-color: #ddd;
}
header nav ul .uili ul {
  background-color: #fff;
  display: none;
  position: absolute;
  /* float: left; */
  top: 71px;
  width: auto;
  border-left: 1px solid #ddd;
  border-right: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
}
header nav ul .uili ul a li {
  /* display: none; */
  width: auto;
  height: auto;
  float: initial;
  /* background-color: #ddd; */
}
header nav ul .uili ul li {
  color: #000;
  font-size: 16px;
  padding: 0 31px;
  line-height: 40px;
}
header nav ul .uili ul li:hover {
  border-top: 1px solid #3273ff;
  background-color: #ddd;
}
header nav ul .uili:hover ul {
  display: block;
}
header nav ul .uili:hover .icon {
  transition: 0.4s ease;
  transform: rotate(180deg);
}
header .burger {
  display: none;
}
header.sticky {
  position: fixed;
  top: 0;
  animation: dropDown 0.5s ease-in-out forwards;
}
@keyframes dropDown {
  from {
    transform: translateY(-100px);
  }
  to {
    transform: translateY(0);
  }
}
@media (max-width: 1150px) {
  header nav {
    display: none;
  }
  header {
    grid-template-columns: repeat(2, 1fr);
  }
  header .burger {
    display: block;
    cursor: pointer;
    width: 20px;
    height: 30px;
    justify-self: end;
  }
  .burger-line1,
  .burger-line2,
  .burger-line3 {
    margin-top: 10px;
    width: 25px;
    height: 2px;
    background-color: #000;
    transition: 0.4s ease;
  }
  .burger-line2 {
    position: absolute;
    top: 28px;
  }
  .burger-line3 {
    position: absolute;
    top: 37px;
  }
  @keyframes dropDown_open {
    from {
      transform: translateY(-20px);
    }
    to {
      transform: translateY(0);
    }
  }
  header.open nav {
    display: block;
    position: absolute;
    width: 100vw;
    max-height: 310px;
    top: 71px;
    margin: 0;
    overflow: auto;
    /*overflow-y: scroll;*/
    /* border-left: 1px solid #ddd; */
    border-bottom: 1px solid #ddd;
    animation: dropDown_open 0.4s ease-in-out forwards;
  }
  header.open nav .uili {
    float: none;
  }
  header.open nav ul {
    width: 100%;
  }
  header.open nav .uili a {
    line-height: 50px;
    width: auto;
  }
  header.open nav .uili ul {
    display: none;
    position: initial;
    padding-left: 20px;
    /* right: 128px; */
    /* margin-top: -50px; */
    /* top: auto; */
    /* width: 100%; */
    border-left: none;
    border-top: none;
    border-bottom: none;
  }
  header.open nav .uili .ulone {
    display: none;
    position: initial;
    /* right: 128px; */
    /* margin-top: -50px; */
    /* top: auto;
    width: auto; */
    border-left: none;
    border-top: none;
    border-bottom: none;
  }
  ul {
    margin-bottom: 0;
  }
  header.open nav ul a:hover {
    color: #000;
    background-color: #ddd;
    /* border-bottom: 1px solid blue; */
  }
  header.open nav .uili:hover ul {
    /* border-top: 1px solid blue; */
    display: block;
    color: #000;
    background-color: #fff;
  }
  header.open nav .uili {
    width: auto;
  }
  header.open .burger-line1,
  header.open .burger-line2,
  header.open .burger-line3 {
    transition: 0.4s ease;
  }
  header.open .burger-line1 {
    transform: rotate(45deg) translate(7px, 5px);
  }
  header.open .burger-line2 {
    transform: translateX(5px);
    opacity: 0;
  }
  header.open .burger-line3 {
    transform: rotate(-45deg) translate(7px, -5px);
  }
}
@media (max-width: 300px) {
  header .logo {
    font-size: 16px;
  }
  header .logo img {
    width: 25px;
  }
}
